package base.jdk8_demo.lambda.demo02;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Emp {
    private Integer id;
    private String name;
    private Integer age;
    private Double salary;
    private Status status;
    
    public Emp(String name){
        this.name = name;
    }

    public Emp(String name, Integer age){
        this.name = name;
        this.age = age;
    }
    public Emp(Integer id, String name, Integer age){
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public Emp(String name, Integer age, Double salary){
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public Emp(String name, Integer age, Double salary, Status status){
        this.name = name;
        this.age = age;
        this.salary = salary;
        this.status = status;
    }
}

